package com.wanyangproject.androidlearning.designMode.strategy;

public class Duck2 extends Duck {

    public Duck2() {
        setFly(new FlyStrategyAble());
        setTweet(new TweetAble());
    }

    @Override
    void display() {
        System.out.println("我是真实的鸭子。。。");
    }

    @Override
    void name() {
        System.out.println("我是灰色的。。。");
    }


}
